.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  padding: 0;
  height: 80px; /* 增加导航栏高度 */
  line-height: 80px; /* 调整行高以匹配新高度 */
}

.header-inner {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: bold;
  color: #1890ff;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px; /* 增大logo尺寸 */
  margin-right: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text-zh {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.logo-text-en {
  font-size: 12px;
  color: #666;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 16px;
}

.nav a {
  color: rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s forwards;
  font-size: 16px; /* 增大导航文字 */
  padding: 8px 0; /* 增加导航项的内边距 */
}

.nav a:nth-child(1) { animation-delay: 0.1s; }
.nav a:nth-child(2) { animation-delay: 0.2s; }
.nav a:nth-child(3) { animation-delay: 0.3s; }
.nav a:nth-child(4) { animation-delay: 0.4s; }
.nav a:nth-child(5) { animation-delay: 0.5s; }
.nav a:nth-child(6) { animation-delay: 0.6s; }
.nav a:nth-child(7) { animation-delay: 0.7s; }

.nav a.active {
  color: #1890ff;
  font-weight: 500;
}

.nav .ant-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.nav .ant-btn > .anticon + span {
  margin-left: 4px;
}

.site-main {
  flex: 1;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* 移除所有媒体查询中的宽度限制 */
@media (max-width: 768px) {
  .nav {
    gap: 12px;
  }
  
  .logo-text-zh {
    font-size: 16px;
  }
  
  .logo-text-en {
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .header-inner {
    padding: 0 8px;
  }
  
  .logo img {
    height: 32px;
  }
  
  .logo-text-zh {
    font-size: 14px;
  }
  
  .logo-text-en {
    display: none;
  }
  
  .nav .ant-btn > span:not(.anticon) {
    display: none;
  }
  
  .nav a {
    font-size: 14px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}